import request from '@/utils/request'
function getUrl(url) { return '/api/' + url }

//添加建筑信息
export function addInBuilding(data) {
    return request({
        url: getUrl("admin/building/addInBuilding"),
        method: 'post',
        data
    })
}

//更新建筑信息
export function updateInBuilding(data) {
    return request({
        url: getUrl("admin/building/updateInBuilding"),
        method: 'post',
        data
    })
}


export function deleteInBuilding(data) {
    return request({
        url: getUrl("admin/building/deleteInBuilding"),
        method: 'post',
        data
    })
}


//获取建筑信息数据 getInBuildingVo
export function getInBuildingVo(data) {
    return request({
        url: getUrl("admin/building/getInBuildingVo"),
        method: 'post',
        data
    })
}


//获取所有建筑信息数据列表 getInBuildingList
export function getBuildingList(data) {
    return request({
        url: getUrl("admin/building/getBuildingList"),
        method: 'post',
        data
    })
}